package com.lyc.common.enums;

import lombok.Getter;

/**
 * Created by 廖师兄
 * 2017-05-29 18:09
 */
@Getter
public enum ResultEnum {
    UNKNOW_ERROR(-1, "未知错误"),
    SUCCESS(0, "成功"),
    PARAM_ERROR(1, "参数不正确"),
    DELETE_ERROR(2, "删除失败"),
    BOOK_EXIST(10, "无此书籍"),
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
